

<template>
    <div class="card-border">
        <button class="btn btn-error" @click="goto">
            <span>
                <SvgIcon icon-class="warn_sure_icon" />
                {{ $t('批量告警确认') }}
            </span>
        </button>
        <button class="btn btn-success" @click="goto">
            <span>
                <SvgIcon icon-class="workflow-stats" />
                {{ $t('批量告警复位') }}
            </span>
        </button>
    </div>
</template>
<script setup lang="ts">
import router from '@/vue-router'

interface T_Prop {
    goPath?: string
}

const props = defineProps<T_Prop>()

function goto() {
    router.push({
        path: props.goPath || '/',
    })
}
</script>